package com.lollipop.synthential.basetraining;

public class wolf extends Animal {

    // 定义name、weight两个实例变量
    private String name;
    private double weight;

    public wolf(String name, Double weight) {
        // 为name、weight两个实例变量赋值
        this.name = name;
        this.weight = weight;
    }

    @Override
    public String getDesc() {
        return "Wolf[name=" + name + ",weight=" + weight + "]";
    }
}
